import request from "@/utils/http";

export const getBannersAPI = (distributionSite = 1) => {
  // 请求获取轮播图API
  return request({
    url: "/home/banner",
    data: {
      distributionSite,
    },
  });
};
export const getCategoryAPI = () => {
  // 请求获取分类API
  return request({
    url: "/home/category/mutli",
  });
};
//热门推荐
export function getHotsAPI() {
  return request({
    url: "/home/hot/mutli",
  });
}

//猜你喜欢
export function getLikesAPI(page = 1, pageSize = 10) {
  return request({
    url: "/home/goods/guessLike",
    data: { page, pageSize },
  });
}

//获取商品地址
export const getRecomendsAPI = (url) => {
  return request({ url });
};
